package cz.service;

import cz.dao.UserRepositoty;
import cz.dto.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserService {
    @Autowired
    private UserRepositoty userRepositoty;

    public List<User> getAll(){
        return this.userRepositoty.findAll();
    }
}
